import 'package:flutter/material.dart';

//充值链接弹窗页面
class CnAppPopPageView {
  static showCustomModalBottomSheet(context, page) {
    return showModalBottomSheet(
      backgroundColor: Colors.transparent,
      isScrollControlled: true,
      context: context,
      builder: (BuildContext context) {
        return Container(
          clipBehavior: Clip.antiAlias,
          decoration: const BoxDecoration(
            color: Colors.white,
            borderRadius: BorderRadius.only(
              topLeft: Radius.circular(20.0),
              topRight: Radius.circular(20.0),
            ),
          ),
          height: MediaQuery.of(context).size.height * 4 / 5,
          child: Column(children: [
            const Divider(height: 1.0),
            Expanded(
              child: page,
            ),
          ]),
        );
      },
    );
  }
}
